package top.spring.study.service;

import org.springframework.stereotype.Component;
import top.spring.study.chainOfResponsibility.MyFilter;

import java.util.List;

/**
 * 自动注入实现 AbstractInvoiceApplyStrategy 的类 ,String 就是指定的类名
 */
@Component("core")
public class CoreStrategy extends AbstractInvoiceApplyStrategy{

    public List<MyFilter> filters;

    public void initFilters(List<MyFilter> filters){
        this.filters = filters;
    }

    @Override
    public String toString() {
        return "CoreStrategy{" +
                "filters=" + filters +
                ", allFilters=" + allFilters +
                "} " + super.toString();
    }
}
